define(['store','aPermissionCard','util'], function (Store,APermissionCard,Util) {
    function ViewModel(params) {
        Util.extend(this, params);

        var scope = this;

        var store = new Store({
            model: 'mRole',
            id: 'roleStore'
        });

        scope.card = {
            title: '角色列表',
            titleButtons: [],
            cardBody: {
                name: 'cmp:Grid',
                params: {
                    operations: [],
                    store: store,
                    displayFields: ['name', 'order']
                }
            }
        };

        this.callParent(params);
    }

    ViewModel.extend(APermissionCard);

    return ViewModel;
});
